import http from '@http/http'
export const _getUserInfo = (errMsg) => http.GET('/api/auth/userInfo', {}, errMsg)
// 分页查
export const pageUserList = (obj) => http.GET('/api/hUser/list', obj)
// 删除
export const deleteUser = (id) => http.GET('/api/hUser/deleteById?id=' + id)
// 更新
export const updateUser = (user) => http.POST('/api/hUser/updateById?id=', user)
// export const checkUserInfo = (user) => http.POST('/api/hUser/check', user)
export const showAllName = () => http.GET('/api/hUser/showAll')
export const register = (obj) => http.GET('/api/hUser/register', obj)
